<%--
  Created by IntelliJ IDEA.
  User: 39504
  Date: 2020/4/2
  Time: 9:10
  To change this template use File | Settings | File Templates.
--%>

<html>
<head>
    <title>所有用户</title>
</head>
<body>
<h1>a</h1>

<c:if test="${!empty userList}">
<table class="table table-bordered table-striped">
    <tr>
        <th>ID</th>
        <th>昵称</th>
        <th>姓名</th>
        <th>密码</th>
        <th>操作</th>
    </tr>
    <c:forEach items="${userList}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.nickname}</td>
            <td>${user.firstName}</td>
            <td>${user.lastName}</td>
            <td>
                <a href="" type="button" class="btn btn-sm btn-success">详情</a>
                <a href="/SpringWebMVCC_war_exploded/admin/users/update/${user.id}" type="button" class="btn btn-sm btn-warning">修改</a>
                <a href="/SpringWebMVCC_war_exploded/admin/users/delete/${user.id}" type="button" class="btn btn-sm btn-danger">删除</a>
            </td>
        </tr>
    </c:forEach>
    </c:if>
</table>
</body>
</html>
